<extend name="Public:layout"/>
<block name="css">

</block>
<block name="js">
    <script type="text/javascript">
        var QINIU = $.parseJSON('{$qiniu|json_encode}');
    </script>
</block>
<block name="content">
    <div class="panel admin-panel">
        <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span>首页视频</strong></div>
        <div style="height:30px;"></div>
        <div class="container-fluid">
            <form method="post" class="form-x ajax-submit" action="{:U('')}">
                <div class="row">
                    <div class="form-group col-lg-4 col-md-4">
                        <button type="button" class="btn btn-success icon-upload upload-thumb">上传视频缩略图</button>
                        <button type="button" class="btn btn-info show-upload" data-ext="image" data-input="input[name=video_thumb]" data-preview=".preview-upload-thumb">已上传的图片</button>
                        <div class="col-lg-12 col-md-12">
                            <img src="{$video_thumb}" controls class="preview-upload-thumb"></img>
                        </div>
                        <input type="hidden" class="form-control" name="video_thumb" value="{$video_thumb}">
                    </div>
                </div>
                <div class="row">
                    <div class="form-group col-lg-4 col-md-4">
                        <button type="button" class="btn btn-success icon-upload upload">上传视频</button>
                        <button type="button" class="btn btn-info show-upload" data-ext="video" data-input="input[name=video]" data-preview=".preview-upload">已上传的视频</button>
                        <div class="col-lg-12 col-md-12">
                            <video src="{$video}" controls class="preview-upload"></video>
                        </div>
                        <input type="hidden" class="form-control" name="video" value="{$video}">
                    </div>
                </div>

                <div class="form-group">
                    <div class="label">
                        <label></label>
                    </div>
                    <div class="field">
                        <button class="button bg-main icon-check-square-o" type="submit"> 提交</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</block>